package wqh.pojo;

import wqh.domain.AlarmConfirm;
import wqh.domain.Monitor;

/**
 * Created by devts on 2016/9/30.
 */
public class AlarmConfirmPojo {

    private Integer id;
    private String geo_1_name;
    private Integer geo_1_id;
    private String geo_2_name;
    private Integer geo_2_id;
    private String geo_3_name;
    private Integer geo_3_id;
    private String device_name;
    private String device_ip_str;
    private String sensor_name;
    private Integer monitor_id;
    private String monitor_name;
    private String dev_type;
    private Integer dev_addr;
    private String dev_status;
    private Byte confirm_status;
    private Integer confirm_time;
    private Integer alarm_time;

    public AlarmConfirmPojo(AlarmConfirm alarmConfirm, Monitor monitor)
    {
        id = alarmConfirm.getId();
        geo_1_name = alarmConfirm.getGeo_1_name();
        geo_1_id = monitor.getGeo_level_1_id();
        geo_2_name = alarmConfirm.getGeo_2_name();
        geo_2_id = monitor.getGeo_level_2_id();
        geo_3_name = alarmConfirm.getGeo_3_name();
        geo_3_id = monitor.getGeo_level_3_id();
        device_name = alarmConfirm.getDevice_name();
        device_ip_str = alarmConfirm.getDevice_ip_str();
        sensor_name = alarmConfirm.getSensor_name();
        monitor_id = alarmConfirm.getMonitor_id();
        monitor_name = alarmConfirm.getMonitor_name();
        dev_type = alarmConfirm.getDev_type();
        dev_addr =alarmConfirm.getDev_addr();
        dev_status = alarmConfirm.getDev_status();
        confirm_status = alarmConfirm.getConfirm_status();
        confirm_time = alarmConfirm.getConfirm_time();
        alarm_time = alarmConfirm.getAlarm_time();
    }

    @Override
    public String toString() {
        return "AlarmConfirmPojo{" +
                "id=" + id +
                ", geo_1_name='" + geo_1_name + '\'' +
                ", geo_1_id=" + geo_1_id +
                ", geo_2_name='" + geo_2_name + '\'' +
                ", geo_2_id=" + geo_2_id +
                ", geo_3_name='" + geo_3_name + '\'' +
                ", geo_3_id=" + geo_3_id +
                ", device_name='" + device_name + '\'' +
                ", device_ip_str='" + device_ip_str + '\'' +
                ", sensor_name='" + sensor_name + '\'' +
                ", monitor_id=" + monitor_id +
                ", monitor_name='" + monitor_name + '\'' +
                ", dev_type='" + dev_type + '\'' +
                ", dev_addr=" + dev_addr +
                ", dev_status='" + dev_status + '\'' +
                ", confirm_status=" + confirm_status +
                ", confirm_time=" + confirm_time +
                ", alarm_time=" + alarm_time +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGeo_1_name() {
        return geo_1_name;
    }

    public void setGeo_1_name(String geo_1_name) {
        this.geo_1_name = geo_1_name;
    }

    public Integer getGeo_1_id() {
        return geo_1_id;
    }

    public void setGeo_1_id(Integer geo_1_id) {
        this.geo_1_id = geo_1_id;
    }

    public String getGeo_2_name() {
        return geo_2_name;
    }

    public void setGeo_2_name(String geo_2_name) {
        this.geo_2_name = geo_2_name;
    }

    public Integer getGeo_2_id() {
        return geo_2_id;
    }

    public void setGeo_2_id(Integer geo_2_id) {
        this.geo_2_id = geo_2_id;
    }

    public String getGeo_3_name() {
        return geo_3_name;
    }

    public void setGeo_3_name(String geo_3_name) {
        this.geo_3_name = geo_3_name;
    }

    public Integer getGeo_3_id() {
        return geo_3_id;
    }

    public void setGeo_3_id(Integer geo_3_id) {
        this.geo_3_id = geo_3_id;
    }

    public String getDevice_name() {
        return device_name;
    }

    public void setDevice_name(String device_name) {
        this.device_name = device_name;
    }

    public String getDevice_ip_str() {
        return device_ip_str;
    }

    public void setDevice_ip_str(String device_ip_str) {
        this.device_ip_str = device_ip_str;
    }

    public String getSensor_name() {
        return sensor_name;
    }

    public void setSensor_name(String sensor_name) {
        this.sensor_name = sensor_name;
    }

    public Integer getMonitor_id() {
        return monitor_id;
    }

    public void setMonitor_id(Integer monitor_id) {
        this.monitor_id = monitor_id;
    }

    public String getMonitor_name() {
        return monitor_name;
    }

    public void setMonitor_name(String monitor_name) {
        this.monitor_name = monitor_name;
    }

    public String getDev_type() {
        return dev_type;
    }

    public void setDev_type(String dev_type) {
        this.dev_type = dev_type;
    }

    public Integer getDev_addr() {
        return dev_addr;
    }

    public void setDev_addr(Integer dev_addr) {
        this.dev_addr = dev_addr;
    }

    public String getDev_status() {
        return dev_status;
    }

    public void setDev_status(String dev_status) {
        this.dev_status = dev_status;
    }

    public Byte getConfirm_status() {
        return confirm_status;
    }

    public void setConfirm_status(Byte confirm_status) {
        this.confirm_status = confirm_status;
    }

    public Integer getConfirm_time() {
        return confirm_time;
    }

    public void setConfirm_time(Integer confirm_time) {
        this.confirm_time = confirm_time;
    }

    public Integer getAlarm_time() {
        return alarm_time;
    }

    public void setAlarm_time(Integer alarm_time) {
        this.alarm_time = alarm_time;
    }
}
